#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QThread>
#include <opencv2/opencv.hpp>
#include <QtDebug>
#include <qtimer.h>
#include <linux/videodev2.h>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QString model_fileName;
    std::string model_fileName_str;
    QTimer timer2;
    QTimer timer;


    int time=8000,S=8000*8000;
    int a=4*S/(time*time);
    int V=0,V_MAX=a*time/2;
    int times=0;
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public:
    Ui::MainWindow *ui;
    QPixmap image;
public slots:
    void updateUI1(const QPixmap& pixmap);
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();
    void on_dial_valueChanged(int value);
    void on_dial_2_valueChanged(int value);
    void on_dial_3_valueChanged(int value);
    void on_dial_4_valueChanged(int value);
    void on_pushButton_3_clicked();
    void on_checkBox_stateChanged(int arg1);
    void on_pushButton_4_clicked();
    void on_pushButton_5_clicked();
    void on_pushButton_6_clicked();
    void on_checkBox_2_stateChanged(int arg1);
    void on_dial_5_valueChanged(int value);
    void on_pushButton_8_clicked();
    void on_dial_7_valueChanged(int value);
    
};

#endif // MAINWINDOW_H
